// unknown类型只能赋值给unknown和any类型
// any类型任意类型
function str() {return "hello the world"}
function num() {return 123}

let flag = true
// let result:any
let result:unknown

if (flag){
  result =  str()
} else {
  result =  num()
}